package com.springframework.DI_t.basicDataType_DI;

public class Book {
    private String bookName;
    private String bookAuthor;
    private String others;

    public Book() {
    }

    public Book(String bookName, String bookAuthor, String others) {
        System.out.println("构造器执行了...");
        this.bookName = bookName;
        this.bookAuthor = bookAuthor;
        this.others=others;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getOthers() {
        return others;
    }

    public void setOthers(String others) {
        this.others = others;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookName='" + bookName + '\'' +
                ", bookAuthor='" + bookAuthor + '\'' +
                '}';
    }
}
